package com.cy.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("/doIndexUI")
    public String doIndexUI(){
        return"starter";
    }

    //基于rest风格提取通用页面跳转方法
    @RequestMapping("/{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String moduleUI){

        return "sys/"+moduleUI;
    }
    @RequestMapping("/doPageUI")
    public String doPageUI(){
        return "common/page";
    }

}
